package com.fatcat.easybuy.mapper;


import com.fatcat.easybuy.pojo.EasyBuyUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Fatcat
 * @description 针对表【easybuy_user】的数据库操作Mapper
 * @createDate 2025-09-10 11:10:26
 * @Entity generator.domain.EasybuyUser
 */
@Mapper
@Repository
public interface EasyBuyUserMapper {
    //根据登录名查询用户
    EasyBuyUser selectUserByLoginName(String loginName);

    //根据邮箱查询用户
    EasyBuyUser selectUserByEmail(String email);

    //注册
    int insertUser(EasyBuyUser easyBuyUser);

    //根据id查询用户
    EasyBuyUser selectUserById(Long id);

    //更新用户
    int updateUser(EasyBuyUser easyBuyUser);

    //删除用户
    int deleteUser(Long id);

    //查询所有用户
    List<EasyBuyUser> selectAllUser(Map<String, Object> params);

    //修改密码
    int updatePassword(Map<String, Object> params);

    //用户修改邮箱
    int updateEmail(Map<String, Object> params);
}




